//
// Created by wangyg98 on 2025/3/30.
//

#ifndef TEYVATSURVIVOR_PUT_IMAGE_H
#define TEYVATSURVIVOR_PUT_IMAGE_H

#include <graphics.h>

inline void put_image_alpha(int x, int y, IMAGE* img) {
    int w = img->getwidth();
    int h = img->getheight();

    AlphaBlend(GetImageHDC(nullptr), x, y, w, h, GetImageHDC(img),
               0, 0, w, h, { AC_SRC_OVER, 0, 225, AC_SRC_ALPHA });
}

#endif //TEYVATSURVIVOR_PUT_IMAGE_H
